fixed a bug in the popularity sort