fixed populaitng courses from xml