fixed error if task is not a ref