fix component and format route