fixed weird cross-domain issue in Chrome