fixed problem with duration

Signed-off-by: Malte Sussdorff <malte.sussdorff@cognovis.com>