fix visits counter