Figured it out right near the end. Had to go back and re-watch. Much better movie once you know that.
Same thing happened with the Sun Also Rises - I figured out with like 20 pages to go that the guy was impotent. Well.
Agree on movie quality, though.