fix bug in line module