Save Pagenumber correctly

Convert to `int` before appending it to the PageNumber-list