fix multiple http bug