NavMeshAgent.Move or SetDestination doesnt allow moving player from one navmeshsurface to another. How to solve that

In a world where rooms can be created or destroyed, each room has its own navmeshsurface and the world has its own navmeshsurface. the player is controlled with wasd input using agent.move or agen.setdestination infortunetly the agent cannot use the navmeshlink to move from one navmeshsurface to another ( from world navmeshsurface to the room navmeshsurface ). how to solve that ?