Fixed issue with search pagination