Fix insufficient check
Merge pull request #129 from AlexKovynev/patch-1

Fix a crash with multiple grids in items