tasktype bug fix