bug fix for loading crossdomain after redirection