Fix saving of activity relations