Fixed getHistoryRequests functions