fix gate