cleaned some errors due to sorting mode