fix bugs: time=-0.01 and right wrong >0 when restart