Avoid adding a teacher twice to a course