fix alias assignment bug in gating method for polyFunctions