fix line bug