activity codes in coursefiles

fixed the bug