Fix server send alerts script