Fix filesCountByTask view.