fixed the wrong iterator on merging rooms