Apply room id for each room.