Fix bug causing routes to not be formatted properly.