update fix in how error are saved