fixed bad function call, log when not found