build with pagination fix