fix IP has /n problem