bugfix in Timer:duration