[Global search] fix Warning error "Invalid arguments passed"