Fix saving of existing permissions