fix for metadata check