fix routing problem for sub routes