Fixed bug when updating parent references for linkbases and views