Fixing reset for registers