Fixed problem with listeners not ready by first authentication message.