prevent trouble in order by