Fixed NIO selector bug