fixed a sliding position bug