properly print statistics while running "-V"

(cherry picked from commit e8195fc099efbd0af6c1b5ebfced857da5dab31d)