Race condition in up voting and down voting