some love on the inventory gui, which was throwing errors left and right