fixed issue with https