fixed linewidth bug