fixing how blank and invalid votes are counted