fixed bugs in course/program ajax