fix bug with listeners method