fixed weird error with https