         }
         
         if self.isClosed {
-            "z".write(to: &data)
+            data.append("z")
+            relative = self.start
         }
     }
     

    command?.write(to: &result)
    let dataStr = getDataString(x)
    if result.isEmpty && !dataStr.isEmpty && dataStr.first != "-" {
        " ".write(to: &result)
    }
    dataStr.write(to: &result)
    return result

    var str = ""
    for _x in x.map({ dataFormatter.string(from: NSNumber(value: $0)) ?? "0" }) {
        if !str.isEmpty && _x.first != "-" {
            str.append(" ")
        }
        _x.write(to: &str)
    }
