fix duration if no time