Fix function definitions.