Fixed cross domain bug