paginagtion fix + search fix
fixed a bug