Fix router clear on page