fixed bug with unused poll fds having their fd=0