Fixed setting max results per page