Bug Fixed

1. Fix the bug raised when there is no course in the list. Thanks to
Elliott.