fix getOrderCondition()