Fix bug that made time.Duration useless.