fixed search after pagination