fixed: wrong query in metadata validation