Fixed bug invalidating votes