fix bug of restore sortingType