Fix a bug which showed "undefined popularity" as a result