fix attribute error in link_spec

fix incorrect attribute name in link_spec