fixed small error in 'visited' field of JSON output