fix bug of time percent in flat report and a demo