fix typo for $scope variable in restoreState
Merge branch 'master' into fix-scope-typo-restore