bugfix in printing if number of IDs and number of times not equal