fix issue when canceling requests