fix course material admin, fixes #477