fixed unit size that caused crashes