Fixed url switch iterations exceeding 10