Fixed error in displaying proper pagination section