Fixed some minor bugs. Investigating the HTTPS crash error