fix unpack error