fix double calculate tags count problem