Bug fix on ProgramController

Bug fix on ProgramController