Corrected small bug when nb of courses not specified