fixed the merging issue. Agencies.php is saved