fix ballot compare