Error persistence bug fix

Quick and dirty.