Make segment compileable