Get rid of invalid line