Fixing duration bug.