Fixed a bug in updateLink() for  parent node propagation.