Reset visitorNum, fixed typo, and added formatting change