fixed error caused by https