fixes tagging behavior