fix export error caused by empty source table