Bug fixing enabling https