Fix lesson delete.