fixed sort error