Fixed totaltaskcount in case of fault