fix for no-sort case