Fix function pointer calls