Method set_canonical not found