Fix some outdated code when using PROGRAM.