few fix on bindPacking function