Fixed a bug where an empty data-deflex-class would throw an error;
Minor fixes in BoxModel.