fix inventory hud not working when there are more than 8 items in the inventory