Fix issue with leading zeros in ip address