fix cache bug when current user course is not present