fixed the skipOnChange ability of setState