Fixed smart ip bug