Fix exception with StatusTask