fix course search bug