fix order clause problem