add security in sections::put_attributes. fix bug in get function for anchors