Fix print_average_values