corrected logical error in one check for ResourceGroup