Changed the way max number of course members are resolved