Fix gate.txt