fix bug in translation and trap unexpected condition