Off not working

The loop trying to match routes and delete them was needing an actual length, not an object.