Rename Rooms by the Group in it

i have groups for unit layouts, which are place in a room, i want the room comment parameter to be the same as the group’s name . somehow some of them are misplaced, like i have a group called 1 bed+den a , but the room comment changes to 1 bed g, any ideas?

Group NAMES in Rooms to Comments.dyn (13.2 KB)

it’ working now, there was a room that was not enclosed, sorry guys.

but is there a way to somehow check if it’s done properly? no disrespect to dynamo but there are 354 units in my project, so i just wanna double check, is there a way somehow to see it in excel maybe?