fixed forest inv query multiple opening ids