fixing pagination in marketplace