Fixed a possible problem that wouldl occur if the parent was a member of some courses