fix duplicate tag issue