Fixed bug re program-links