fix bug related to lesson cutoff