I finally found the bug, it should be working now.
I don’t even know why it worked with the VM compiler in the first place, the code was trying to access a variable which didn’t exist in that scope. Anyway, GameMaker is weird sometimes. Please tell me if it works now.