fixed getDuration