fixed the error in the course class which gave an unkown error