fixed a macheta export bug