Fix languages. (cherry picked from commit 5738f8c)
fixed #5699 (cherry picked from commit 088500b)
fixed #5700 (cherry picked from commit f17655d)