fix query by alert id