Fixed bad function call