fixed the null pointers for student course history