bugfix for alert-query --show counts