prevent 'undefined' in lesson.js