fix tagging script