Complete fix to use HTTPS