Notice the scene where barney gets hit by a bus.

There is a 'one way' sign behind him which points to the left.

The bus hits him from the right.

This can be an act of god to reunite Barney and ted.

This is really clever way of conforming that Marshall was right about miracles.

Subtly hidden easter egg.