Fix for Chinese input and selection