Unsorted dir error fix