Unable to register for event