Fix deletion of tags after adding them