The economy slowed in 2009 , however , as investment waned and the country earned less from its commodity exports when global prices for most commodities fell .