@Benhm3 Bike steering geometry is kind of confusing, so I'm not sure I'll be able to explain it well, but I will try to give you the gist.
You want the spot where the wheel contacts the ground to be behind where the axis the handlebars rotate on would touch the ground if you extended it past the end of the fork. That means the wheel is kind of being dragged behind the fork as you ride, keeping it pointing straight ahead.
The difference between where the axis would touch and where the wheel does touch is called the "trail."
The greater the trail, the more the wheel will want to stay pointed forward while you're riding.
However, as the trail gets larger, the tendency for the wheel to flop to one side or the other at slow speed increases, because of geometrical things.
So, ideally, you want the trail to be just the right size. In the original configuration, the trail here was too large and the wheel really wanted to flop over. By adding the bend, I've reduced the trail so the wheel is less prone to flopping