fixing the control gate