clearified error when persisting objects