Think this fixes the inventory page issue. I culled a line that I dun fully understand in the process.