Fixed bug in event handling for bolscript