fixes some template errors in the lesson type