Fixing bug in Epoll