Fixed issues with line type