fixed bug in line