Fixed bug in block emission that corrupted the stack.