- Fix a bug in export function