Fixing a bug in reading the domain from settings