Fixing logic for figuring out item size