Fix router dispatch error