minor fix
fixed a bug during export