fixed rendering issue in segment list
removed unnecessary code in generator
fixed generation of non-existing TEs and items