fixed bug: not saving app state through app execution