fixed bug related to empty items in lines