fixed a bug in instant search + pagination