fix course query form for plans page