Fix pause_task in dh_params