Fixed bug in scanning votes