Bugfixes for dxf export