Fixes event_perform for inheritance.