Fixed onTouchEnd bug