Fix loops.