Fixing bad metadata