fix route-with-namespace generator