Minor fix in integration loop.