a bug fixed - if can't get ip