Fixed condition for canceling requests