Re-edited programs.html

The bug that caused an index error should now be properly handled.