Fix a bad function call