fixes errors during bin/packing