registerEvents caused anoying behavior, removed it