Fixed reset logic