Fix router deletion