Fixed a bug

Where routers were not being deleted at the end