gate now works as one would expect