Fix generator bug for bootstrap template