fixed bug of overlapping courses