bug fix for page parsing on pagination headers when specifying per_page option