gracefully handle parse errors on edit