solve local host bootstrap bug