Bug which gave runtime error when printing the number of duplicated emails fixed