Fixed exceptions when opening ExportDB