Fix function attributes