fixes bug in poll and rating