Fix bug with getting name from item element