Fix collection view bug on sorting.