[cloudpinyin] move code to proper place
[cloudpinyin] some random prevention problem code..