I have had trains do strange things like that after merging 2 routes.
Takes a bit to find the offending piece sometimes.
One train I had was 91 wagons long extending out off the baseboard.
The offending piece was a single wagon situated half a baseboard away.
Deleted it and the other train dissapeared.
Have a look around and see if there are any other stray wagons anywhere.
Dennis