gate fix