Correctly execute event scripts.