correct bug in discretized_progress + add a warning