fixed listen() bug

It still does not do what it supposed to ... need to trace the problem
still