Fixed bug with results per page