unregistered listener correctly