Fix scan loop in NewAer usage.