Fixing metadata agent for flat networks