fix params packing