fixed up typo for if statement in toil index