fixed RuntimeWarning in the popular_page view