fixed the issue with scaled and https