Fix bug with sorting