The Waiting Bay Station has a rail chain signal after the train stop.
Here is the train schedule: "WB" denotes the Waiting Bay Station, where the train should wait until the (un)loading station is free.

And here is the strange pathfinding of the train when approaching the Waiting Bay:



I simply cannot figure out what's going on here ...