fixed bug in material auto translation