Fix lesson resource delete.