Fix for issue #11 (Infinite loop in setInvokeGestureRecognizer:)