Fixed issues with https