fixed some issues with the app_state snippet