Now it should work in case of a tie.