Bugfix for https requests