array gen route fix