Fixed bugs in courses tab