fix check for prod url