Correct a error when tap swiping