Prevent double ajax request.