fixing bugs in manage course