Fixed a problem with dequeueing that would result in dereferencing a null pointer. There is still a weird memory corruption during the creation of new processes.