fixed a bug in Box3D