Fixed bug in ofsetting, not recognising rectangles when first drawn shape