Fix bug with empty lessons