Tree menu values now get set correctly when they are automatically populated by import or edit instead of manually selected.