Fix a crash when user taps on image during swipe