bugfix duration compute