fixed a gate.