Set missing session attribute 'type' in export.