Fixed bug on ip removal