fix for problem with https in #2300