Fixed zero-padding issue with hex lengths for domains.