Chnages the default timeout for curl requests and corrects an error