Fix setting a variable working if there are multiple parents and but none of them set it.