Fixed problem for ip searching