Base: Fix bug canceling AJAX requests