coerce per_page to integer