Fixing gate parameter validation broken in fa35e55