fix InstanceState