bugfix when writing bootstrap config