Fix bug in touchend