Fixed issue with loading security setting from domain