fixed off by one error in integer de-pack