fix duration recognition