title: Mongoose Pagination is not working properly. It works when I refresh the page twice
body: <p>I am using mongoose pagination v5.0.3, node 9.3.0. I have this code for my blogs pagination:</p>
  
  <pre><code> router.get('/pages/:page', function(req, res){
       var page = req.params.page &gt; 0? req.params.page : 0;
  
       Blog.paginate({}, { page: page, limit: 2 })
         .then(function(data){
             res.render('blog/index', {blog: data.docs});
         }).catch(function(err){
             res.send(err)
       });
   });
  </code></pre>
  
  <p>This code works fine when the page loads, but when I refresh the page it loads 'not found page' 
      <code>app.get("*", function(req, res) {
         res.render("pages/404page");
      });</code></p>