fixing tagging bug