fixed routing error for index