fixed saving of ip addresses