fixed filter bug with pagination