fixes to gates