fix https in metadata