fixed collapsing program links. fixes #739