cleaning up lesson model error