router: fix history