Fixed the rendering issue with inventory