Fix event_scripts errors