fix bootstrap errors