fix bug with thread reading response getting wrong value for requestId