fixed code for startListening()

work, damn it