Fix function without return value