Fix a query issue for alert RPC calls.