Prevent creating of line when selecting the same joint