Fixed the bug with recreating an activity and savefiles