fixed all bugs about courses with more than teacher