Fix bad function call