Fixing cross domain problem