Fixes error when calling https webservices