Fix duration timer

Fixes #166