repair message errors