had broken reset logic