remove invalid line