another fix for metadata autodetection