[Fix] Gesture detector destroyed on restart.