fixed moveBranch so it does not generate new object ids