Bug fix: order state checking operator was wrong.