Fixed duration bug

Signed-off-by: Richard Jung <r.jung@jungit.com>