Correct zero %visits bug introduced by fix #3