fix box size calculation