fixed sh_cat NULL datablocks bug for links