fix state of register when RESET