Fixed printing of results when the number of times and IDs are not matching