I have been playing this amazing game for days now. And through my station personal optimizations I found, I think, a bug of the algorithm used to compute automatically the optimal route between train stations. The screenshot speaks for itself (look at the bottom light green line):
The only fix I have found is to add a waypoint and force lines to go through it.