Why are taxonomy terms not saving when using custom meta boxes with radio button taxonomy selectors?

If your taxonomy is non-hierarchical like tags, change value of input to $term->name. Took me a while to figure it out. It’s crazy but wordpress handle non-hierarchical taxonomies by their name in forms and not ids.

echo "<input type="radio" id='in-$id' name="{$name}"".checked($current,$term->term_id,false)."value="$term->name" />$term->name<br />";