fix double head tag issue