The perils of investing in a shaky market