fix null pointer on active courses