Fix function first