fix router for debug page