fix duration compute error