Bug fixed: order by error correction