Fix mismatching arg names in function declaration and definition