bug fix in name resolution query in metadata module