fix avg duration