i have checkboxes to define in which space the page will appear. But when tried to edit i get the fallowing msg:
"Spaces has disabled this field. You cannot move a node from one term space to another." and non of the checkboxes are checked.
if i change the code to be an array. the problem is fixed.(meens that the right checkbox is checked)(
my code before change looks like this:

//TODO: Fix this whole 'und' thing
$term_field['und']['#disabled'] = TRUE;
$term_field['und']['#default_value'] = $space->id;

and after my change it looks like this:
//TODO: Fix this whole 'und' thing
$term_field['und']['#disabled'] = TRUE;
$term_field['und']['#default_value'] = array($space->id);

has anyone come throw such a problem?
Need to know that this works even if i remark the hole line!!!!