fix transitioning to same route regression