fixed saving polylines