per_page converstion fix