Well this is a story as old as racism itself. There's never been a clear-cut way to unambiguously decide which "race" everybody is, and segregationist regimes have always struggled with edge cases. E.g. back in the days of Jim Crow it was sometimes possible for a particular "black" person to become legally "white" just by crossing state lines.