Make sure value of tree is propagated correctly to commands.