handle pcb-rnd case where inner layers are differently numbered