Fix empty string issue when changing IP