Fix function comparison