Trying to prevent mock url from breaking code