fix bugs in course downloading module