Fixed enableGesture before socket connects