Fixed many bugs i can't even recall. The most importent fix is revoting.