fix bug for popular pagination