fix room_path defined in the wrong scope.