Fixed the save of the state of all the activities.