fixed sort refresh bug