When an activity is saved, the selected "type" of this activity is always reset to "todo" instead of staying set to the saved value.