fix box size calculation
Merge pull request #9 from chrox/master

fix box size calculation