BugFix for Category Sorting