Make course remove lecture/document functions work.