Fixed the method of getting the course ID