Fixed TEA bug

Wrong selection of line types