fixed sort-problem