votes fix and pagination