Moved gate validation from saving to loading. This hopefully resolves issues with gates getting closed on save.