fix a bug of Line