repair error of message