fixed crash if task was not found anymore
updated version