Fix routing variables to properly sync with the url