fix save after exception