Fixed optional params in router.