Fixed bad function reference