Bug fix for Order critical section code.