fixed a bug during export