fixed issue where adding of duplicate items was possible