Fixed the issue. In BSPClassTraders amount of items for Fence is assigned as
sptConfigsTrader.fence.assortSize = settingsTraders.itemAmount
and after changing it to:
sptConfigsTrader.fence.assortSize = settingsTraders.fence.itemAmount;
Everything seems to work just fine. Probably code refactor fallout.