fix duration issue