Flatten sheet metal not working in multibody part

Whenever I create a multi-body part sheet metal part, it seems to not be able to flatten some parts.

The first part flattens fine

But the second part, which is directly perpendicular to the first part, does not flatten.

I have no clue why the bounding box is so far off for the second part..

SolidworksSheet Metal