Fixed usage of event functions

The event functions got renamed in obs.