Fixed thing in translate function