mha: fix var scope search

Change-Id: I20a58df4c1bcc871da9e9b92078e58419ab77ac8