After a policy change in July 2005 , the yuan gradually gained against the dollar , but that trend halted in mid-2008 as plunging demand due to the global financial crisis walloped Chinese exporters , prompting Beijing to keep the yuan at a level of about 6.83 to the dollar .