bug fix for export operation