Fixing a thread state transition.

Now with infinite looping! I assume a bytecode is broken somewhere.