Fixed bug related to box size change in strict mode logic.