Fix bug when creating rooms