fix multiple event registration