Fixing gate output