Fix non ssl connection