fix a dangerous bug of translation