proper fix for the previous commit (destroying inexisting items)