Fix function invocation