Market crashes expose a fundamental flaw in investor psychology.