fixed bug with saving app