fix gesture crash