Handle the case of tasks with bad previous positions