fix translate directives