Fix vote race condition bug