Bug fix https error.(window)