fix update time bug