fix detection of reused metatables