fix wrong event type registration