fixes bug with redirect to voting page