fixes render glitch when holding only elements in inventory