modified code of SEO plugin(refs: #11285)