fix duration error