Fixed BUG related to deep search in compound and not compound AST nodes

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