fix issue where items weren't being removed