Fixed a bug where appstate and can.route don't quite reflect each other always.