fixed compile error with listeners