fixed bug introduced in Sorts.