fix null router error