End miter trim is not correctly trimming angles

I am trying to make a weldment for a frame I need to make out of angles.  When I trie to do a End miter  trim on the intersections of the angle I get weird results.  The bottom leg of some of the angles gone and some of the angles are cut in the middle.

Any help would be appreciated.

SolidworksWeldments