Fixed deleted Tasks bug