Fix bug in Console server (reduce -> foldLeft)