I've had this happen three times with legendary's.
You think, awesome, I finally after freeking hours, got a legendary only to find it's for another build entirely. This is fine of course if you run other builds but still frustrating.
IMO the loot system even after the two attempts to fix it is still pretty crappy. Hopefully third time is the charm?