fixing another auto sort bug