fixed translate trying to use a nonexistant variable.