demo crashes without legend