fix alert count bug