repair metadata