fix bug of bootstrap error