Fix typo in Gate.cpp