Fixed a miscalculation in the number of alerts displayed on the states page.