sampler fix print_progress