fixed minor bug with unscriping of events