I have a piece of code,which uses a polyphonic variable for loops. It works perfectly if triggered by on note callback. However if I copy the same block of code in on ui_control callback, Kontakt warns about breaking an infinite loop and stops the processing. Any suggestion why this happening and how to cope it? Thanks.