fixed issue with not parsing the entire line