fix few bug in translate