cross-domain optimization && bug fixed