fix scope problem in translator module