Delete warnings and correct parser (clean buffers if there is a parser error)