fixed a box-model bug