Fixed more errors in the listen class