Freeze appState for safety