Do not add shape="rect" attribute, fix #1705