fixing bug in demo page