Small change of RESET detection code.