Fixed bug related to translate claim in INVALID-POINTER

Claim with variables outside of scope

Signed-off-by: Herbert Rocha <herberthb12@gmail.com>