bug in visit_count property/setter