Fix bug in time duration on the task index view.