Fixing a conversion bug with int64 and time.Duration.