Correcting the invalid conditions to file parser