@vijayk87714775 - What is the version of the AEM you are using? Is this issue reproducible on AEM vanilla instance?
Generally on changing the tag name or moving the tag, the cq:tag property stays the same but when the page is opened, it correctly references the right tag (dynamically picked).