fixed issue: EventList::loop fails when script is compressed