Remove needless event registration