fix the order of Room::takeAG