fix bug about createDocument and multilang