fix for vote functionality