fix getDuration buffer issue

refs #308