fix error when parsing empty lines