issue with pagination initialization