Fixed bug in computation of average duration for dashboard. This fixes issue #30.