fix zero time bug