fix some bugs in Translater