DOING_AJAX check correction