Fixed error when creating new domain record