Replace tag in existing file with community
Fixed bug in tagreplacement