The good news is that your changes appear to be working perfectly!!!
The bad news is that SONAR isn't playing nicely. It responds to transport controls okay, but is refusing to do loops. I.e., it honors START & STOP independently, but not together, as is needed for a rapid restart of the loop. I am still experimenting.
I may resort to a different DAW. SONAR has its strengths, but this is apparently not one of them.
I also have an old license for Hollyhock, which is designed specifically for live performance & loops. Hollyhock is a fascinating DAW - it's more of a development environment. It is designed to stay clock-perfect while you rewire & recode logic and signal flows on the fly… Probably better suited for this, overall. But my license expired, I'm going to try to find an upgrade discount…https://www.brainmodular.com/