fix order state