fix issue where tags couldn't be added or removed