fixed requirements for inventories, fix #1557