Multithreading NIO, seems a thread-safe bug to fix...