Fixed bug for iOS8 with GestureRecognizer