fix crash on demo page