fixed problem with loading on https