Fix save domain parser function