BUG -- fix bug of no courses