avoid potential crash of Room::getFront