fixed issue with https pages