fixed bug in demo page