fix for https bug