Fix function overload resolution