Fix delete lesson issue