If you keep studying econ you will learn that these failures are actually the norm, and thus why the only "capitalist" states to really succeed have been the ones where the state was strong enough to reign in the market.
Of course, such a state of affairs is temporary at best -- since the alternative is so lucrative!