Fixed bugs in courses2.js