If completed courses from a previous term are visible on your page, your teacher didn't close the course.
To close a course:
Send a message to the teacher for that course and ask the teacher to close the course.
Note. You may view grades for closed courses in the Grade Book.