Correct work with courses with old template settings