fix phantom ajax