should be registering event properly