Fix error message not saved