fix hatch dxf import with last element error