fix duration at end