Fixed the registration of the listener ID.