fixed state sending in didChange