Error puts Shanghai bourse in a spin