fix crash issue of get ip