handle errors internally

Shouldn't we fix the error rather than ignoring it, it might break other aspects of the editor without us being aware of it?