https fix for task #47