Fix a severe issue where items could be duped - thanks VoSkorbia!