Fixed crash when there stored state file unavailable