Fixed some gestures segfaults