Fixed crash in voting state