applications: fix storing the popularity

Authored by sandsmark on Mar 8 2018, 5:09 PM.