sort-error fix try