Fixed creating and firing custom events in events.custom.CustomEvent.fire()