fix unintended _valid_part to valid_part variable name change.