fixed error where tasks without spirnt were using broken reference