Fix mismatched function signature and function call