added site_type = 'sites' check to the course_instance query