Miter Flange around a bend

How do you wrap a miter flange around a bend and keep the corners closed,

see attached model, or pic

The area where the problen is, is where the bend and the miter flanges meet..

Any ideas anyone?

SolidworksSheet Metal