Fix router error for registration