Fix handling of parent links for model inheritance