Fixed bug where original size of structures container wasn't taken into account.