Last duration was not being properly cleared.
This commit fixes #2252.