save state modified fix