loadGates(): remove old gates