bugfix for malformed ip addresses