Avoid saving non-integer page numbers