added bug fix for duration changes