Fix in the pageinator to force item_count to int