Fix drawing lines and polygons. Fix reread connection properties afterit changing