Fix counter increment failure if loaded from old config