fix lesson type length