protect against huge counters in battery on switch