Fix output motion insertion in tree view.