fixed calling http from https issue