End of line when shape added fix