fix linecheck bug