fixes activities with empty expected
fixes course material upload
a template name is needed