fixed the assignment of configId when it is the only configuration