It works fine on the 16F1789, but on other microcontrollers with a smaller stack, stack problems may occur. A more simplified version would have to be made for it to work correctly. In any case, when something like this happens, it is advisable to report the problem because it helps them improve...