fixed bugs with unit size calculation