Fixed bug in course controller