fix registration on event