Lily tells Marshall in his letter to his older self that he wrote as a teenager, the 'perfect woman' he describes (six feet tall with blonde hair) is a description of his mother. Yet as we've seen in many episodes, Marshall's mother has red hair.
Ted Mosby gives a lecture about bridges in his Architecture class. Architects do not design bridges; engineers do.