fixed query filter for course_completions method