Fix function coding style