line2D length problem