       id: req.params.username
       per: 2,
       perBlocks: 5
-      page: 1
-      q: parseInt(req.query.page) or 1
+      page: parseInt(req.query.page, 10) or 1
+      q: req.query.q
       sort: req.query.sort?.toUpperCase() or 'UPDATED_AT'
 
 @channelsAPI = (req, res, next) ->
-  send = channelVariables req
+  send = channelsVariables req
   graphQL send
     .then (response) ->
       res.setHeader 'Content-Type', 'application/json'

@channels = (req, res, next) ->
  return next() unless res.locals.author

  send = channelVariables req
  graphQL send
    .then (response) ->
      res.locals.sd.QUERY = req.query.q
      res.locals.sd.PROFILE_CHANNELS = response.user.contents
      res.locals.sd.SORT = sort

      res.render 'profile',
        channels: response.user.contents

  dfd.promise

@user = (req, res, next) ->  
  return next() unless res.locals.author

  blocks = new UserBlocks null,
