Fix flashing pipeline history for long pipelines (#246).