Fix function syntax