Foreigners poured money into China amid the coronavirus pandemic