fixed warning in translation method