Fixed bug of linetype