Add warning to regen_metadata