Solved duplicate listing of students in course view. Fixes #241