Fix a ip buffer problem