Skip calculate_pages when first is nil