fixes tostring in abstractshape