fix bug time not updated