avoid checking the same taskid several times (this time is true)