fix IP count issue