finish savedinstancestate