fix in visit counter