Fix allocation sizes.