fix bug in update time