Bugfix: new gates do not work when opening them.