Fixed error in packing