another attempt to fix unpack bug