making the code more resilient when vme scope is null