fix unpack algorithm
0.2.4