fixed plotgauge loop break criterion